package com.atguigu.mybatis.mapper;

import com.atguigu.mybatis.bean.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface EmpParamMapper {
    Emp getEmploy(Long id);

    Emp getEmploy2(List<Long> ids);

    void addEmploy(Emp emp);

    void addEmploy2(Map<String, Object> m);


    // ============多个参数=============
    // 新版MyBatis可以不用@Param注解
    List<Emp> getEmployByAgeAndSalary(@Param("age") Integer age, @Param("salary") Double salary);

}
